<template>
    <div>
      <div class="whiteBac mt10 p10">
        <el-button type="primary" size="small" @click="toEdit">编辑</el-button>
      </div>
      <div class="whiteBac mt20 p20 fs14">
        <div class="">
          <div class="a-left-w">账号名称：</div>
          <div class="fl lh25">{{baseInfo.name}}</div>
          <div class="clear"></div>
        </div>
        <div class="mt15">
          <div class="a-left-w">账号头像：</div>
          <div class="fl"><img :src="baseInfo.head_img" alt="" width="50" height="50"></div>
          <div class="clear"></div>
        </div>

        <!---->
        <!--<div class="mt10">-->
          <!--<div class="a-left-w">PC背景图片：</div>-->
          <!--<div class="fl"><img :src="baseInfo.pc_bg" alt="" width="150" height="150"></div>-->
          <!--<div class="clear"></div>-->
        <!--</div>-->
        <!--<div class="mt10">-->
          <!--<div class="a-left-w">APP背景图片：</div>-->
          <!--<div class="fl"><img :src="baseInfo.app_bg" alt="" width="150" height="150"></div>-->
          <!--<div class="clear"></div>-->
        <!--</div>-->
        <!---->

        <div class="mt10">
          <div class="a-left-w">简介：</div>
          <div class="fl lh20 break" style="width: 80%;">{{baseInfo.simple_desc}}</div>
          <div class="clear"></div>
        </div>
        <div class="mt10">
          <div class="a-left-w">公众号：</div>
          <div class="fl lh25">{{baseInfo.customer_phone}}</div>
          <div class="clear"></div>
        </div>
        <div class="mt10">
          <div class="a-left-w">客服邮箱：</div>
          <div class="fl lh25">{{baseInfo.customer_email}}</div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
</template>

<script>
  import service from '@/service/index'
  import { setCookie } from '@/base/utils'
  export default {
    data(){
      return{
        baseInfo:{}
      }
    },
    mounted() {
      this.queryAgentInfo();
    },
    methods:{
      queryAgentInfo(){
        service.haiBeiServerQueryAgentInfo({}).then(res => {
          if (res.success) {
            //console.log(JSON.stringify(res.result,'------'));
            this.baseInfo = res.result;
            //this.$message({type:'success', message:res.msg});
          }else{
            this.$message({type:'error', message:res.msg});
            return;
          }
        });
      },
      toEdit(){
        this.$router.push({ name:'editHome'});
      }
    }
  }
</script>

<style scoped>

</style>
